import sys
import requests


try:
    response = requests.get('https://cosbrowser.cloud.tencent.com/software/coscli/coscli-linux')
except Exception as e:
    print("请求失败，请检查参数后重试，具体错误信息：", e)
    sys.exit(1)

# 写入硬盘
with open("/usr/local/bin/coscli", "wb") as code:
    code.write(response.content)